<?php //include("html-includes/common/carousel.php"); ?>
<div class="col-md-12">
	<div class="row">
		<?php include("global-includes/breadcrumbs.php"); ?>
		<h1 class="sectionTitle"><?php echo $page["name"]; ?></h1>
		<?php echo $page["description"]; ?>
		
		<table class="table" id="wishTable">
			<thead>
				<tr>
					<th class="hidden-xs">#</th>
					<th class="hidden-xs"></th>
					<th><?php echo translate("product_name"); ?></th>
					<th><?php echo translate("price"); ?></th>
					<th><?php echo translate("current_price"); ?></th>
					<th class="hidden-xs"><?php echo translate("wishmeter"); ?></th>
					<th class="hidden-xs">&nbsp;</th>
					<th class="">&nbsp;</th>
				</tr>
			</thead>
			<tbody>
				<?php 
					$wishIndex = 1;
					 foreach($client["wishlist"] as $key => $product): 
				?>
				<tr>
					<td class="hidden-xs"><?php echo $wishIndex; ?></td>
					<td class="hidden-xs">
						<img alt="" class="" src="<?php echo scripts_url().$product["images"][0]["thumb_name"]?>" />
					</td>
					<td>
						<a class="uppercase" href="<?php echo $product["url"]; ?>" title="<?php echo $product["name"]; ?>">
							<?php echo $product["name"]; ?>
						</a>
					</td>
					<td><?php echo $product["wish_price"]; ?></td>
					<td><?php echo $product["price"]; ?></td>
					<td>
						<div class = 'rating wishmeter' product_id= '<?php echo $product["id"]; ?>'>
							
							<?php for($j=1;$j<6;$j++):?>
								<div  index = "<?php echo $j; ?>" <?php echo ($j<= $product['wishmeter'] ? 'class="bgred"' : '');?>></div>
							<?php endfor;?>
						</div>
					</td>
					<td class="hidden-xs">
						<div class="social_icons visible-lg visible-md col-md-2">
							
							<?php if($settings["share_button_facebook"] == 1):?>
								<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $product["url"]; ?>" onclick="javascript:window.open(this.href,
								  	'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=630,width=600');return false;"  rel="nofollow" target="_blank" class="socialIcon facebook">
									Facebook
								</a>
							<?php endif; ?>
							
							<?php if($settings["share_button_tweeter"] == 1):?>
								<a href='https://twitter.com/share?<?php echo $product["url"]; ?>' onclick="javascript:window.open(this.href,
								  	'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=630,width=600');return false;"  class="socialIcon twitter" rel="nofollow" target="_blank">Twitter</a>
							<?php endif; ?>
							
							
							<?php if($settings["share_button_google"] == 1):?>
								
								<a href='https://plus.google.com/share?url=<?php echo $product["url"]; ?>' onclick="javascript:window.open(this.href,
								  	'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" 
							  		rel="nofollow" target="_blank" class="socialIcon google-plus">
							  		Google+
							  	</a>
							<?php endif; ?>
							
			          	</div>
					</td>
					
					<td>
						<div class="btn-group">
							<button class="btn btn-default btn-danger btn-sm addToCart" type="button" product_id="<?php echo $product["id"]; ?>" title="<?php echo translate("add_to_cart");?>">
								<span><?php echo translate("buy"); ?>&nbsp; &nbsp;</span>
								<span class="glyphicon glyphicon-shopping-cart"></span>
							</button>
							 <a product_id="<?php echo $product["id"]; ?>" class="btn btn-default btn-danger btn-sm removeFromWishlist" type="button" title="<?php echo translate("remove_from_wishlist"); ?>">
					        	<span class="glyphicon glyphicon-minus-sign"></span>
					        </a>
				        </div>
					</td>
				</tr>
				<?php $wishIndex++; endforeach;?>
				
			</tbody>
		</table>
	</div>
</div>

